package hist_data;

import java.util.Date;
import java.util.List;

import iblink.core.Stock;

public class DailyPair {

	private Stock stock1;
	private Stock stock2;
	private Date date;
	private double oneDayCorrelation;
	private List<MinutePairs> minutePairs;

	public static DailyPair createDailyPair(Date date, Stock stock1,
			Stock stock2, List<MinuteBar> list1, List<MinuteBar> list2) {
		return new DailyPair(stock1, stock2, date, 0d);
	}

	public String toString() {
		return getClass().getSimpleName() + "[stock1[" + stock1 + "] stock2["
				+ stock2 + "] date[" + date + "] oneDayCorrelation["
				+ oneDayCorrelation + "]]";
	}

	public DailyPair(Stock stock1, Stock stock2, Date date,
			double oneDayCorrelation) {
		this.stock1 = stock1;
		this.stock2 = stock2;
		this.date = date;
		this.oneDayCorrelation = oneDayCorrelation;
	}

	public Stock getStock1() {
		return stock1;
	}

	public Stock getStock2() {
		return stock2;
	}

	public Date getDate() {
		return date;
	}

	public double getOneDayCorrelation() {
		return oneDayCorrelation;
	}
}
